package com.zmn.oms.business.interfaces.purpose;

import com.zmn.oms.model.entity.purpose.OrderPurpose;
import com.zmn.oms.model.entity.purpose.OrderPurposeQuery;
import com.zmn.oms.model.vo.purpose.OrderPurposeVO;

import java.util.List;

/**
 * 类描述：意向单
 *
 * @author liuying
 * @date 2018/11/06 11:40
 */
public interface OrderPurposeBService {


    List<OrderPurposeVO> listOrderPurposeByQuery(OrderPurposeQuery query);

    List<OrderPurposeVO> exportListOrderPurposeByQuery(OrderPurposeQuery query);

    /**
     * 新增意向单
     *
     * @param orderPurpose 订单
     * @return
     */
    void insertOrderPurpose(OrderPurpose orderPurpose);

    void updateOrderPurpose(Integer orderPurposeId);

    OrderPurpose findOrderPurposeByKey(Integer orderPurposeId);

    void updateIsCreateOrder(Integer orderPurposeId);
}
